package me.zhengjie.modules.order.domain.resp;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import me.zhengjie.modules.order.domain.OrderDetail;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class OrderDetailResp {
    @ApiModelProperty(value = "订单id")
    private Long id;

    @ApiModelProperty(value = "订单号")
    private String orderSn;

    @ApiModelProperty(value = "交易状态，枚举值：SUCCESS：支付成功 REFUND：转入退款 NOTPAY：未支付 CLOSED：已关闭REVOKED：已撤销（仅付款码支付会返回）USERPAYING：用户支付中（仅付款码支付会返回）PAYERROR：支付失败（仅付款码支付会返回）")
    private Integer tradeState;

    @ApiModelProperty(value = "1-未售后 2-售后中 3-已售后")
    private Integer soldStatus;

    @ApiModelProperty(value = "物流单号")
    private String kdOrder;

    @ApiModelProperty(value = "物流单号")
    private String kdName;

    @ApiModelProperty(value = "收件人姓名")
    private String name;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "省市区")
    private String provinceCityRegion;

    @ApiModelProperty(value = "地址详情")
    private String address;

    @ApiModelProperty(value = "运费")
    private BigDecimal fee;

    @ApiModelProperty(value = "商品总价")
    private BigDecimal totalPrice;

    @ApiModelProperty(value = "实付款【和总金额一样，目前没有其他参数影响该字段】")
    private BigDecimal realPrice;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "收货人姓名")
    private String recName;

    @ApiModelProperty(value = "收货人电话")
    private String recPhone;

    @ApiModelProperty(value = "收货人地址")
    private String recAddress;

    @ApiModelProperty(value = "发货状态【0：未发货 1：已发货 2：已收货】")
    private Integer logisticsStatus;

    @ApiModelProperty(value = "订单详情")
    private List<OrderDetail> detailList;

}
